import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
import { Result, ResultTable } from "@/api/types";

/** 获取系统管理-部门管理列表 */
export const getDeptList = (data?: object) => {
  return http.request<Result>("post", baseUrlApi("dept"), { data });
};
/** 获取系统管理-部门管理-新增部门 */
export const addDept = (data?: object) => {
  return http.request<Result>("post", baseUrlApi("addDept"), { data });
};

/** 获取系统管理-部门管理-新增部门 */
export const updateDept = (data?: object) => {
  return http.request<Result>("put", baseUrlApi("dept"), { data });
};